<div class="sidebar-collapse">
	<ul class="nav" id="side-menu">
	<?php
		/* <li class="sidebar-search">
			<div class="input-group custom-search-form">
				<input type="text" class="form-control" placeholder="Search...">
				<span class="input-group-btn">
				<button class="btn btn-default" type="button">
					<i class="fa fa-search"></i>
				</button>
			</span>
			</div>
			<!-- /input-group -->
		</li> */
		?>
		<!-- configuration -->
		<li <?php if($this->params['controller'] == 'configuration') { ?>class="active"<?php }?>>
			<a href="#"><i class="fa fa-sitemap fa-fw"></i> Cấu hình<span class="fa arrow"></span></a>
			<ul class="nav nav-second-level">
				<li>
					<a <?php if($this->params['action'] == 'add' && $this->params['controller'] == 'configuration') echo 'class="child-active"';?> href="<?php echo $this->Html->url(array('controller' => 'configuration', 'action' => 'add')); ?>">Cấu hình website</a>
				</li>
			</ul>
			<!-- /.nav-second-level -->
		</li>
		<!-- menu -->
		<!-- category -->
		<li <?php if($this->params['controller'] == 'categorys') { ?>class="active"<?php }?>>
			<a href="#"><i class="fa fa-sitemap fa-fw"></i> Danh mục<span class="fa arrow"></span></a>
			<ul class="nav nav-second-level">
				<li>
					<a <?php if (($this->params['action'] == 'index' || $this->params['action'] == 'edit') && $this->params['controller'] == 'categorys') echo 'class="child-active"';?> href="<?php echo $this->Html->url(array('controller' => 'categorys', 'action' => 'index')) ?>">Danh sách danh mục</a>
				</li>
				<li>
					<a <?php if($this->params['action'] == 'add' && $this->params['controller'] == 'categorys') echo 'class="child-active"';?> href="<?php echo $this->Html->url(array('controller' => 'categorys', 'action' => 'add')); ?>">Thêm mới</a>
				</li>
			</ul>
			<!-- /.nav-second-level -->
		</li>
		<!-- menu -->
		<li <?php if($this->params['controller'] == 'menus') { ?>class="active"<?php }?>>
			<a href="#"><i class="fa fa-sitemap fa-fw"></i> Menu<span class="fa arrow"></span></a>
			<ul class="nav nav-second-level">
				<li>
					<a <?php if(($this->params['action'] == 'index' || $this->params['action'] == 'edit') && $this->params['controller'] == 'menus') echo 'class="child-active"';?> href="<?php echo $this->Html->url(array('controller' => 'menus', 'action' => 'index')) ?>">Danh sách menu</a>
				</li>
				<li>
					<a <?php if($this->params['action'] == 'add' && $this->params['controller'] == 'menus') echo 'class="child-active"';?> href="<?php echo $this->Html->url(array('controller' => 'menus', 'action' => 'add')); ?>">Thêm mới</a>
				</li>
			</ul>
			<!-- /.nav-second-level -->
		</li>
		<!-- banner -->
		<li <?php if($this->params['controller'] == 'advertise') { ?>class="active"<?php }?>>
			<a href="#"><i class="fa fa-sitemap fa-fw"></i> Quảng cáo banner<span class="fa arrow"></span></a>
			<ul class="nav nav-second-level">
				<li>
					<a <?php if(($this->params['action'] == 'index' || $this->params['action'] == 'edit') && $this->params['controller'] == 'advertise') echo 'class="child-active"';?> href="<?php echo $this->Html->url(array('controller' => 'advertise', 'action' => 'index')) ?>">Danh sách quảng cáo</a>
				</li>
				<li>
					<a <?php if($this->params['action'] == 'add' && $this->params['controller'] == 'advertise') echo 'class="child-active"';?> href="<?php echo $this->Html->url(array('controller' => 'advertise', 'action' => 'add')); ?>">Thêm mới</a>
				</li>
			</ul>
			<!-- /.nav-second-level -->
		</li>
		<!-- news -->
		<li <?php if($this->params['controller'] == 'news') { ?>class="active"<?php }?>>
			<a href="#"><i class="fa fa-sitemap fa-fw"></i> Tin tức<span class="fa arrow"></span></a>
			<ul class="nav nav-second-level">
				<li>
					<a <?php if(($this->params['action'] == 'index' || $this->params['action'] == 'edit') && $this->params['controller'] == 'news') echo 'class="child-active"';?> href="<?php echo $this->Html->url(array('controller' => 'news', 'action' => 'index')) ?>">Danh sách tin tức</a>
				</li>
				<li>
					<a <?php if($this->params['action'] == 'add' && $this->params['controller'] == 'news') echo 'class="child-active"';?> href="<?php echo $this->Html->url(array('controller' => 'news', 'action' => 'add')); ?>">Thêm mới</a>
				</li>
			</ul>
			<!-- /.nav-second-level -->
		</li>
		<!-- page static -->
		<li <?php if($this->params['controller'] == 'statics') { ?>class="active"<?php }?>>
			<a href="#"><i class="fa fa-sitemap fa-fw"></i> Trang tĩnh<span class="fa arrow"></span></a>
			<ul class="nav nav-second-level">
				<li>
					<a <?php if(($this->params['action'] == 'index' || $this->params['action'] == 'edit') && $this->params['controller'] == 'statics') echo 'class="child-active"';?> href="<?php echo $this->Html->url(array('controller' => 'statics', 'action' => 'index')) ?>">Danh sách trang tĩnh</a>
				</li>
				<li>
					<a <?php if($this->params['action'] == 'add' && $this->params['controller'] == 'statics') echo 'class="child-active"';?> href="<?php echo $this->Html->url(array('controller' => 'statics', 'action' => 'add')); ?>">Thêm mới</a>
				</li>
			</ul>
			<!-- /.nav-second-level -->
		</li>
		<!-- support -->
		<li <?php if($this->params['controller'] == 'support') { ?>class="active"<?php }?>>
			<a href="#"><i class="fa fa-sitemap fa-fw"></i> Hỗ trợ online<span class="fa arrow"></span></a>
			<ul class="nav nav-second-level">
				<li>
					<a <?php if(($this->params['action'] == 'index' || $this->params['action'] == 'edit') && $this->params['controller'] == 'support') echo 'class="child-active"';?> href="<?php echo $this->Html->url(array('controller' => 'support', 'action' => 'index')) ?>">Danh sách hỗ trợ</a>
				</li>
				<li>
					<a <?php if($this->params['action'] == 'add' && $this->params['controller'] == 'support') echo 'class="child-active"';?> href="<?php echo $this->Html->url(array('controller' => 'support', 'action' => 'add')); ?>">Thêm mới</a>
				</li>
			</ul>
			<!-- /.nav-second-level -->
		</li>

	</ul>
	<!-- /#side-menu -->
</div>
<!-- /.sidebar-collapse -->